#ifndef _SEM_H__
#define _SEM_H__
#include<errno.h>
#include<linux/sched.h>



#define SEM_NAME_LEN 20
#define SEM_TABLE_SIZE 20



typedef struct semaphore
{
    char name[SEM_NAME_LEN+1];
    int value;
    struct task_struct *queue;
} sem_t;


extern sem_t sem_table[SEM_TABLE_SIZE];

#endif